<?php
$pageId = 'index';
$bannerSize = count($data['banner']);

//dump($data);
//dump($_ENV);
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>天生我才 - 移动版</title>
    <include file="Common/meta"/>
    <include file="Common/link"/>
</head>
<body>
<header class="layout-header">
    <div class="container">
        <h1 class="title">天生我才</h1>
        <ul class="tool-list">
            <li class="tool-item"><a href="/index/search"><i class="icon icon-search"></i></a></li>
        </ul>
    </div>
</header>
<div class="layout-body layout-index">
    <div class="container">
        <include file="Common/slider"/>
        <section class="box index-box">
            <header class="box-header">
                <div class="box-title">竞赛报名</div>
                <a class="more" href="/competition/listPage">更多>></a>
            </header>
            <div class="box-body">
                <ul class="index-cpt-list">
                    <volist name="_ENV['sidebar_competition']" id="competition" offset="0" length="3">
                        <li class="list-item">
                            <a class="title" href="/competition/detail?id={$competition['cpt_id']}">{$competition['title']}</a>
                        </li>
                    </volist>
                </ul>
            </div>

        </section>
        <section class="box index-box">
            <header class="box-header">
                <div class="box-title">热门企业</div>
                <a href="/index/likeCpn" class="more">更多>></a>
            </header>
            <div class="box-body">
                <ul id="com-list" class="grid-list"></ul>
            </div>
        </section>
        <section class="box index-box">
            <header class="box-header">
                <div class="box-title">人气人才</div>
                <a href="/index/likeStd" class="more">更多>></a>
            </header>
            <div class="box-body">
                <ul id="user-list" class="grid-list"></ul>
            </div>
        </section>
    </div>

</div>
<include file="Common/nav"/>
<script>
    var page = {
        userType: '{$_ENV['user']['type']}',
        type: '{$data['type']}',
        keyword: '{$data['key']}',
        searchType: 0,
        searchArea: '{$data['area']}',
        searchIndustry: '{$data['indus']}'
    };
</script>
<include file="Common/script"/>
<script src="__PUBLIC__/asset/js/index.js"></script>
<script>
    //调用渲染企业列表函数
    comAjax2(true);
    userAjax2(true);
</script>
</body>
</html>

